package com.weixing.mall.base.enums;

import com.weixing.mall.base.enums.IBaseEnum;
import lombok.NoArgsConstructor;

/**
 * @author siashan
 * @since v1.0
 */

@NoArgsConstructor
public enum  GenderEnum implements IBaseEnum<Integer> {
    MALE(1,"男"),

    FEMALE(2,"女"),

    OTHER(3,"未知")
    ;


    private int value;
    private String desp;

    GenderEnum(int value, String desp) {
        this.value = value;
        this.desp = desp;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
